<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>学生信息列表</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="../bootstrap/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-3">
    <h2>条纹表格</h2>
    <p>通过添加 .table-striped 类，来设置条纹表格:</p>
    <table class="table table-striped">
        <thead>
        <tr>
            <th>name</th>
            <th>price</th>
            <th>有效期</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="product:${products}">
            <td th:text="${product.name}"/>
            <td th:text="${product.price}"/>
            <td th:text="${product.expireDate}"/>
        </tr>
        </tbody>
    </table>
</div>
<a href="getPage.do?page=addProduct">return to 新增产品页面</a>
</body>


</html>